<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License

Title      : Balloonr
Version    : 1.0
Released   : 20070813
Description: A two-column design for 1024x768 resolutions suitable for blogs and forum sites.

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Editar Professor - Boudoux - UFPE</title>
    <meta name="keywords" content=""/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="description" content=""/>
    <link href="${createLinkTo(dir: 'css', file: 'default.css')}" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" xml:space="preserve">
        function go(url, message) {
            if(confirm(message)) {
                document.location = url;
            }
        }
    </script>
</head>
<body>
<div id="header">
    <form id="search" method="get" action="">
        <fieldset>
            <legend>Search</legend>
            <input id="searchfield" type="text" name="s" value=""/>
            <input id="searchsubmit" type="submit" value="buscar"/>
        </fieldset>
    </form>
    <h1><a href="/">Boudou<span>x</span></a></h1>
    <h2>&nbsp;trabalhos de graduação do CIn</h2>
</div>
<div id="page">
    <div id="content">
        <div class="post">
            <h2 class="title">Editar Professor</h2>
            <div class="entry">
                <g:form controller="professor" action="update" method="post">
                    <input type="hidden" name="id" value="${professor.id}" />
                    <br/>
                    <label for="name">Name:</label><br/>
                    <input class="biginput" id="name" name="name" value="${fieldValue(bean: professor, field: 'name')}"/><br/>
                    <g:hasErrors bean="${professor}" field="name">
                        <div class="errors">
                            <g:eachError bean="${professor}" field="name"><g:message error="${it}"/><br/></g:eachError>
                        </div>
                    </g:hasErrors>
                    <br/><br/>
                    <label for="email">Email:</label><br/>
                    <input id="email" name="email" class="mediuminput" value="${fieldValue(bean: professor, field: 'email')}"/>
                    <g:hasErrors bean="${professor}" field="email">
                        <div class="errors">
                            <g:eachError bean="${professor}" field="email"><g:message error="${it}"/><br/></g:eachError>
                        </div>
                    </g:hasErrors>
                    <br/><br/>
                    <label for="site">Site:</label><br/>
                    <input id="site" name="site" class="mediuminput" value="${fieldValue(bean: professor, field: 'site')}"/>
                    <g:hasErrors bean="${professor}" field="site">
                        <div class="errors">
                            <g:eachError bean="${professor}" field="site"><g:message error="${it}"/><br/></g:eachError>
                        </div>
                    </g:hasErrors>
                    <br/><br/>
                    <label for="phone">Phone:</label><br/>
                    <input id="phone" name="phone" class="mediuminput" value="${fieldValue(bean: professor, field: 'phone')}"/>
                    <br/><br/>
                    <input type="submit" value="atualizar professor"/>
                    <a href="javascript:go('<g:createLink controller="professor" action="list" />', 'Cancelar edição de professor?');" class="linkButton">cancel</a>
                </g:form>
            </div>
        </div>
    </div>
    <div id="sidebar">
        <ul>
            <li>
                <h2>Trabalhos</h2>
                <ul>
                    <li><a href="<g:createLink controller="work" action="create" />">Adicionar</a></li>
                    <li><a href="<g:createLink controller="page" action="search" />">Buscar</a></li>
                    <li><a href="<g:createLink controller="work" action="done" />">Já apresentados</a></li>
                    <li><a href="<g:createLink controller="work" action="waiting" />">Não apresentados</a></li>
                    <li><a href="<g:createLink controller="work" action="best" />">Melhores notas</a></li>
                    <li><a href="<g:createLink controller="work" action="list" />">Listar Todos</a></li>
                    <li><a href="<g:createLink controller="rss" action="works" />"><img src="${createLinkTo(dir: 'images', file: '01.png')}" alt="feeds">&nbsp;RSS</a></li>
                </ul>
            </li>
            <li>
                <h2>Periodos</h2>
                <ul>
                    <li><a href="<g:createLink controller="semester" action="create" />">Adicionar</a></li>
                    <li><a href="<g:createLink controller="semester" action="list" />">Listar todos</a></li>
                    <li><a href="<g:createLink controller="semester" action="cloud" />">Como nuvem</a></li>
                </ul>
            </li>
            <li>
                <h2>Professores</h2>
                <ul>
                    <li><a href="<g:createLink controller="professor" action="create" />">Adicionar</a></li>
                    <li><a href="<g:createLink controller="professor" action="list" />">Listar todos</a></li>
                    <li><a href="<g:createLink controller="professor" action="runners" />">Mais ativos</a></li>
                </ul>
            </li>
            <li>
                <h2>Areas</h2>
                <ul>
                    <li><a href="<g:createLink controller="area" action="create" />">Adicionar</a></li>
                    <li><a href="<g:createLink controller="area" action="list" />">Listar todas</a></li>
                    <li><a href="<g:createLink controller="area" action="actives" />">Areas mais ativas</a></li>
                    <li><a href="<g:createLink controller="area" action="cloud" />">Como nuvem</a></li>
                </ul>
            </li>
        </ul>
        <div style="clear: both;">&nbsp;</div>
    </div>
</div>
<div id="footer">
    <p id="legal">&copy;2007 All Rights Reserved. | Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
    <p id="links"><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a></p>
</div>
</body>
</html>